package com.gulimall.authserver.feign;

import com.gulimall.authserver.vo.SocialUser;
import com.gulimall.authserver.vo.UserLoginVo;
import com.gulimall.authserver.vo.UserRegistVo;
import com.run.common.exception.BizCodeEnume;
import com.run.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Date: 2022/02/05/22:59
 * @Description:
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    R oauthlogin(@RequestBody SocialUser socialUser);

}
